package com.xjscrm.console.chat.dispatch.match;

import com.xjscrm.console.dto.chat.setting.ChatAllocateRuleJsonDTO;

/**
 * The interface Dispatch rule.
 *
 * @author mingyang.chen create in 2024/3/20 10:00
 */
public interface AllocateRule {

    /**
     * 分配员工id
     *
     * @param merId          the mer id
     * @param deviceUniqueId the device unique id
     * @param allocateRule   the allocate rule
     * @return 分配的员工id long
     */
    Long allocateStaffId(Long merId, Long deviceUniqueId, ChatAllocateRuleJsonDTO allocateRule);
}
